[WIP] feat: [#1096] While, Do-while loop implementation for fetching paginated data from an API #1097
Conversation
…an API Signed-off-by: Nyamath Shaik <nyamath.shaik@uipath.com>
|
Hi, @nyamathshaik and thanks for your work! However, as per contribution guidelines, I have to ask you to please refrain from opening a PR, especially not in draft, before gaining approval from all maintainers, as your feature request might be rejected (even though, in this case, it probably won't be, but the implementation details still remain to be defined) |
|
I have a couple of remarks regarding your proposal, which I provided in the related issue. |
|
@cdavernas Thanks for letting me know! 😊 Could you please take a look at the issue #1096 and let me know if the proposal looks good to move forward? Happy to incorporate any feedback or iterate further based on the maintainers' suggestions. |
|
@nyamathshaik I think this is a WIP, right? Since we haven't settled the conversation yet. |
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Please specify parts of this PR update:
Discussion or Issue link:
While, Do-while loop implementation for fetching paginated data from an API #1096
What this PR does:
This PR introduces enhancements to support iterative logic within the do block using a while loop construct. Specifically, it adds support for:
A while condition to allow loop execution as long as the condition evaluates to true.
postConditionCheck: false to enable do-while loop semantics.
maxIterations to define an upper limit on loop executions, providing safety against infinite loops.
The changes are accompanied by an example paginated-fetch-example that demonstrates fetching paginated API data until .hasNextPage == true, accumulating results across iterations.
Additional information:
This capability enables richer control flow for iterative data-fetching use cases in serverless workflows, reducing the need for complex custom code and improving the expressiveness of the DSL.
Sample document: